import { createRouter, createWebHistory} from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   {path:"/",redirect:"/home"},
   {path:'/home',name:"home",components:{
    default:()=>import("@/views/Home/HomeView.vue"),
     footer:()=>import("@/components/FooterCom.vue")
    }},
   {path:'/kind',name:"kind",components:{
    default:()=>import("@/views/KindView/KindView.vue"),
    footer:()=>import("@/components/FooterCom.vue")
  }},
   {path:'/cart',name:"cart",components:{
     default:()=>import("@/views/CartView/CartView.vue"),
      footer:()=>import("@/components/FooterCom.vue")
   }},
   {path:'/my',name:"my",components:{
    default:()=>import("@/views/MyView/MyView.vue"),
    footer:()=>import("@/components/FooterCom.vue")
   }},
   {path:"/detail/:proid",name:"detail",component:()=>import("@/views/Detail/DetailView.vue")},
  //  {path:""}
  ],
})

export default router
